package com.atguigu.mapper;

import com.atguigu.base.BaseMapper;
import com.atguigu.entity.UserFollow;
import com.atguigu.entity.vo.UserFollowVo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface UserFollowMapper extends BaseMapper<UserFollow> {
    UserFollow getFollowByUserIdAndHouseId(@Param("userId") Long userId,@Param("houseId") Long houseId);

    UserFollow findFollowByUserIdAndHouseId(@Param("userId") Long userId,@Param("houseId") Long houseId);

    void cancelFollow(@Param("userId") Long userId,@Param("houseId") Long houseId);

    Page<UserFollowVo> findUserFollowVoPage(@Param("userId") Long userId);

    void cancelFollowById(@Param("id") Long id);
}
